import 'package:flutter/material.dart';

class EachView extends StatefulWidget {
   String _title;
   EachView(this._title);
   @override
   _EachViewState createState() {
    return _EachViewState();
  }
}

class _EachViewState extends State<EachView> {

 var  iconList={
   "home": Icon(Icons.home,color: Colors.grey, size: 200.0,),
   "camera": Icon(Icons.camera_alt,color: Colors.grey, size: 200.0,),
   "search": Icon(Icons.search,color: Colors.grey, size: 200.0,),
   "user": Icon(Icons.account_circle,color: Colors.grey, size: 200.0,),
 };


  @override
  Widget build(BuildContext context) {
     return Scaffold(
       appBar: AppBar(
         title: Text(widget._title.toUpperCase()),
       ),
      body: Center(
        child:iconList[widget._title],
      ),
    );;
  }
}